<?


// Carrega classe para ler XMLs
if($_SERVER['SERVER_NAME'] == "xxx"){
	include_once("/home/restricted/home/xxx/public_html/LIB/minixml/minixml.inc.php");
}
else
{
	include_once($_SERVER['DOCUMENT_ROOT']."/LIB/minixml/minixml.inc.php");
}
include_once("./includes/classes/xml.class.php");
$OBXml = new Xml;

// Carrega classe para ler configuracoes
include_once("./includes/classes/conf.class.php");
$OBConf = new Conf();
$OBConf->carrega_arquivo("./includes/confs/main.conf.xml");

// Inicia Main
include_once(AW_FS_LIB."/adodb/adodb.inc.php");
include_once(AW_FS_INCLUDES."/classes/main.class.php");
include_once(AW_FS_INCLUDES."/classes/main.materia.class.php");$OBMateria = new Materia();
include_once(AW_FS_INCLUDES."/classes/main.tipomateria.class.php");$OBTipoMateria = new TipoMateria();
include_once(AW_FS_INCLUDES."/classes/main.usuario.class.php");$OBUsuario = new Usuario();
include_once(AW_FS_INCLUDES."/classes/main.secao.class.php");$OBSecao = new Secao();
include_once(AW_FS_INCLUDES."/classes/main.site.class.php");$OBSite = new Site();
include_once(AW_FS_INCLUDES."/classes/main.tipopagina.class.php");$OBTipoPagina = new TipoPagina();
include_once(AW_FS_INCLUDES."/classes/main.pagina.class.php");$OBPagina = new Pagina();
include_once(AW_FS_INCLUDES."/classes/main.imagem.class.php");$OBImagem = new Imagem();
include_once(AW_FS_INCLUDES."/classes/main.pessoa.class.php");$OBPessoa = new Pessoa();
include_once(AW_FS_INCLUDES."/classes/main.arquivo.class.php");$OBArquivo = new Arquivo();
include_once(AW_FS_INCLUDES."/classes/main.busca.class.php");$OBBusca = new Busca();
include_once(AW_FS_INCLUDES."/classes/main.colaboracao.class.php");$OBColaboracao = new Colaboracao();
include_once(AW_FS_INCLUDES."/classes/formparser.class.php");$OBFormParser = new FormParser();
include_once(AW_FS_LIB."/fckeditor/fckeditor.php");

include_once(AW_FS_LIB."/smarty-light/src/class.template.php");
$smarty = new template();
$smarty->template_dir = AW_FS_TEMPLATES;
$smarty->compile_dir = AW_FS_TEMPLATES_COMPILED;
$smarty->force_compile = true;

$smarty->assign("layout","default");
?>